System and methods for machine anomaly detection based on sound spectrogram images and neural networks

ABSTRACT

A system and methods for machine anomaly and behavior classification is provided. An audio capture device may attach to a mechanical apparatus comprising a first component and a second component. The first component and second component may separately generate audible noise. The audio capture device may generate a signal in response audio caused by the vibrating diagram. The system may receive the signal generated by the microphone of the audio capture device. The system may determine, based on a machine learning model and the signal, an anomalous event associated with the first component, a second component, or a combination thereof. Alternatively, or in addition, the system may classify operation of the machine based on second machine learning model.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of and claims the benefit of U.S. patent application Ser. No. 17/173,946 filed Feb. 11, 2021, which claims the benefit of U.S. Provisional Application No. 62/972,814 filed Feb. 11, 2020, the entireties of which are incorporated by reference herein.

TECHNICAL FIELD

This disclosure relates to device monitoring and, in particular, to device monitoring with machine learning and sound processing.

BACKGROUND

In the new era of manufacturing with the Industry 4.0, effective machine monitoring systems are an important aspect of smart manufacturing. Unexpected failure of machinery may cause devastating costs, or even worse, dangerous incidents. Prominent methodologies for identification and prediction of the machine conditions and their dynamic behavior are typically physics-based or the data-driven. Although their processing strategies are quite different, both methods typically utilize various sensor signals such as torque, vibration, emission, and currents. The physics-based approach takes a variety of static and dynamic parameters into considerations to develop a precise model based on a comprehensive knowledge about physical attributes of the subjects. On the other hand, the data-driven methods emphasize feature extraction, which accounts for deriving compressed and meaningful information from raw sensor signals. The sensors and devices required to collect data and process data under traditional methods often involve costly implementation and specific instrumentation.

BRIEF DESCRIPTION OF THE DRAWINGS

The embodiments may be better understood with reference to the following drawings and description. The components in the figures are not necessarily to scale. Moreover, in the figures, like-referenced numerals designate corresponding parts throughout the different views.

FIG. 1 illustrates a first example of a system;

FIG. 2 illustrates a first example of an audio capture device;

FIG. 3 illustrates a second example of an audio capture device;

FIG. 4 illustrates a third example of an audio capture device;

FIG. 5 illustrates a fourth example of an audio capture device;

FIG. 6 illustrates an example of an audio processor controller;

FIG. 7 illustrates an example of logic for an audio processing controller;

FIG. 8 illustrates a first example of logic for anomaly detection based on an autoencoder;

FIG. 9 illustrates a second example of logic for anomaly detection based on an autoencoder;

FIG. 10 illustrates example of logic for classifying machine operation;

FIG. 11 illustrates a second example of a system;

FIG. 12 illustrates a third example of a system;

FIG. 13 illustrates a fourth example of a system;

FIG. 14 illustrates a fifth example of a system; and

FIG. 15 illustrates a sixth example of a system.

DETAILED DESCRIPTION

Data driven approaches to identification and prediction of the machine conditions have historically relied on voluminous operating information obtained from sensor(s). The operating information may capture machine behavior during a fault condition. Such faults may be categorized according to the machine status. It is not always possible to denote every sort of anomaly, which may lead to diagnostic failure (or false alarm). Furthermore, it is not always possible to collect the data from machines under the anomalous conditions. Imposing artificial defects on machine components allows to collect useful data, however it may induce severe failure in the machine.

Another consideration on machine monitoring is cost-effectiveness demands of small footprint and low-cost sensors for Internet of Things (IoT). For monitoring machine conditions, sound sensing may be more affordable solution for machine monitoring than force or vibration measurement since the total costs for sensors and signal conditioning devices are not required when using numerous sensors at the same time. However, sound signals captured using a microphone are susceptible to external noise. Ambient sounds from other machinery and humans can be mixed to the recorded sounds, making it difficult to find the acoustic location. Moreover, machine monitoring may involve multiple microphones positioned at various locations/distances from the machine.

To address these and other deficiencies, a system for machine anomaly and behavior classification is provided. By way of introductory example, the system may include an audio capture device. The audio device may attach to a mechanical apparatus comprising a first component and a second component. The first component and second component may separately generate audible noise. The audio capture device may include a body, a diagraph disposed in the body, and a microphone. The diagraph may vibrate in response to sound generated by the mechanical device. The microphone may generate a signal in response audio caused by the vibrating diagram. The system may receive the signal generated by the microphone of the audio capture device. The system may determine, based on a machine learning model and the signal, an anomalous event associated with the first component, a second component, or a combination thereof. Alternative or in addition, the system may classify operation of the machine based on another machine learning model. The system may output a data message indicative of the anomalous event and/or the classified operation.

FIG. 1 illustrates a first example of a system 100. The system may include an audio capture device 102. The audio capture device 102 may include a device which captures sound generated by a monitored machine 104 and converts the sound into an audio signal. The audio signal may include an analog and/or digital signal that is transmittable via wired and/or wireless communication. The system 100 may further include an audio processing controller 106. The audio processing controller 106 may apply machine learning to detect anomalous machine behavior and/or classify machine operation.

A technical challenge that may arise with monitoring machinery based on sound is that the audio signal may be subject to noise. For example, the audio capture device 102 may be located in an environment where other machines, workers, equipment, etc., generate sound, which may be undesirably captured by the audio capture device 102. Accordingly, the audio capture device 102 may be designed to limit, dampen, and/or eliminate environmental and/or unwanted sound.

FIG. 2 illustrates a first examples of the audio capture device 102. The audio capture device 102 may include a diaphragm 202, a microphone 204, and a body 206. The diaphragm 202 may include a flexible material and/or membrane that vibrates in desired frequency range in response to internally transmitted sound. The diaphragm also acts as an amplifier to increase sound level in desired frequency range and to decrease noise in undesired frequency range.

The body 206 may include a shell or housing that defines a cavity 209 within. The body 206 may include an outer edge 208 on the first side 210 of the body 206. The outer edge 208 may define an opening on the first side 210 of the body 206. The outer edge 208 may rest on an outer surface 212 of the monitored machine 104. Alternatively or in addition, a gasket or O-ring may be included in or affixed to the outer edge 208. Sound from the machine 104 may be channeled by the opening of the body 206 and received by the cavity 209.

The diaphragm 202 may be disposed in the body 206. For example, the diaphragm 202 may be disposed between the opening and the cavity 209. Thus, when affixed to the machine 104, the diagram 202 may be offset from the outer surface 212 of the machine to enable movement of the diagraph. For example, the outer edge may protrude from the body 208 to form a gap between the diaphragm and the outer surface 202 of the machine. Accordingly, changes in pressure cause by vibration of the machine may cause the diaphragm 202 to vibrate, and the vibrating diaphragm 202 may cause pressure changes in the cavity.

The body 206 may receive the microphone 204 at various locations. For example, the cavity 209 may receive the microphone 204 such that the microphone 204 is at least is at least partially disposed within body 206. In some examples, the microphone 204 may be positioned a second side 214 of the body 206, opposite the diaphragm 202. Alternatively, the microphone 204 may be disposed at other locations of the body 206.

In some examples, the body 206 of the audio capture device 102 may be tapered. For example, the body 206 of the audio device may taper from the first side 210 to the second side 214 such that the body 206 converges toward the second side. The tapering may define a code-shaped portion. Alternatively or in addition, the tapering may define a shape such as that included in a stethoscope.

In some examples, noise minimization is achieved by distancing the microphone 204 from the machine being monitored.

FIG. 3 illustrates a second example of the audio capture device 102. The audio capture device 102 may include a hose 302 that extends away from the body 206. In some examples, the hose may be flexible which, among other benefits, allows the sensor to be located strategically on the machine. The hose 302 may include hollow interior where variations in air pressure are channeled. The microphone 204 may be connected to, positioned adjacent, and/or at least partially disposed in the hose 302 such that the microphone 204 receives sound traveling from the body 206.

FIG. 4 illustrates a third example of the audio capture device. The audio capture device may include a seal 402 that distances the body from the surface. The seal may include, for example, a gasket, o-ring, or chemically applied substance. The seal may have flexibility to dampen the vibration of the machine being monitored. The seal may also distance the body and/or diaphragm from the machine's surface. The machine's surface and diagram may define a gap, as previously discussed.

In some examples, the microphone may be at least partially disposed in the hose 302. The microphone may include a receiving region 404. The receiving region 404 may include, in some examples, a diaphragm that drives a coil based on changes in pressure. The receiving region 404 may be disposed in the tube. In some examples, the inner surface of the tube 302 may contact the outer surface of the microphone such that external noise is sealed off. For example, the microphone 204 may be at least partially friction fitted inside of the tube 302.

FIG. 5 illustrates a fourth example of the audio capture device. The audio capture device shown in FIG. 5 is shaped similar to a stethoscope. The audio capture device may be referred to as a stethoscope, as described herein, though it should be appreciated that the stethoscope is enhanced and improved for the purposes of machine monitoring, as described herein

The audio capture device described herein may, according to various aspects, amply sound at lower frequencies (i.e. 37.5 HZ-112.5) hz. The hose may prevent sound dispersion and the distance afforded by the hose may distance the microphone away from the machine further reducing ambient influence. In addition, the receiving portion microphone may disposed inside of the house and the hose may seal around the microphone further reducing ambient influence. The audio signal may provided by the audio capture device may undergo further processing to identify machine behavior and malfunctions.

FIG. 6 illustrates an example of the audio processing controller 106. The audio processing controller 106 may include an input interface 602, a feature extractor 604, an anomaly detector 606, an autoencoder machine learning model (hereinafter autoencoder model) 608, a classifier 610, classification machine learning model (hereinafter classification model) 612, and an output controller 614.

FIG. 7 illustrates example of logic for the audio processing controller 106. Reference to FIG. 6 is made throughout the following discussion of FIG. 7 . The input controller 602 may obtain an audio signal (702). The audio signal may be generated by, for example, the audio capture device (refer to FIGS. 1-5 and the related discussion for examples of the audio capture device). The system may generate a spectrogram (704) and then extract features from the spectrogram (706). Based on the extracted features, the anomaly detector 606 may identify anomalous machine operation based on the autoencoder machine learning model 608 (708). Refer to FIGS. 8-9 and the related discussion for example flow logic for anomalous operation detection. Alternatively or in addition, the classifier 610 may classify machine operation based on the classification machine learning model 612 (710) Refer to FIG. 10 and the related discussion for further description of machine operation classification.

The output controller 614 may output a data message comprising (or representative of) the anomalous event and/or the operation event. Alternatively or in addition, the output controller may map the anomalous event, the operation event, and/or a component identified as creating the anomaly. Accordingly, the output controller may enable a user or device to receive information descriptive of anomalous behavior by a machine or component and the types of activity that may have caused the anomalous behavior.

It should be appreciated that the logic flow described in reference to FIG. 7 may include additional, fewer, or different operations than illustrated. Also, in some examples, the system may perform anomaly detection without classification or classification without anomaly detection.

FIG. 8 illustrates a first example of logic for anomaly detection based on an autoencoder.

Sound signals measurement. The audio capture device(s) and me be positioned at their attachment site(s) (equivalently, target site(s)) on the target machine. The input controller may then receive audio signals captured during machine operation. The Feature extractor may transform the audio signals into spectrograms in frequency domain using short-term Fourier transform (STFT). The spectrograms are compressed into features by filtering, which are spectrogram within the frequency range of interest. The spectrogram, which is a sound signal magnitude versus frequency is a one-dimensional image (i.e. array), may be extended into a two-dimensional image by concatenating in order of time. The features, i.e. the spectrogram image, are inputs of autoencoder, also they play the role of reference outputs for training the autoencoder. The dimension of input and the depth of the autoencoder is predefined.

Training an autoencoder. Audio signals, which are considered as “normal” or “acceptable”, are collected to train the autoencoder. To select the structure of autoencoder, changing hyperparameters are performed. Features are extracted from sound spectrograms generating 2D images, and then fed into the autoencoders. For the convenience, the sound signals are recorded longer than the input dimension, then the images are divided into several features. The input dimension is decided for each joint with several numbers (n=4, 8, 16, 32) and the one with minimum loss is accepted.

Testing the trained model and making decision (i.e. detecting anomaly). The signals under “normal” and “anomalous” conditions are collected for testing. Again, the features are extracted in the same way, then fed forward into the trained autoencoder. Here, different weights are loaded on the end effector of robot. In normal conditions, the weight less than the allowable level of the robot is loaded, whereas heavier loads attached to the robot are regarded as anomalous state in this study. In this regard, feasible thresholds ε are preliminarily set between “normal” and “abnormal” status in each axis. Here, RE is the difference between reconstructed features, which are the output of autoencoder (i.e. the reconstructed spectrogram image) and its corresponding input. After the thresholds are set for each joint, the model is used to detect the anomaly by comparing the RE with its corresponding threshold.

FIG. 9 illustrates a second example of logic for anomaly detection based on an autoencoder.

The input controller may obtain audio signals (902). The feature extractor 604 may generate a spectrogram (904). A spectrogram may include a representation of a spectrum of frequencies of the audio signal as it varies with time. Various analytics may provide the spectrogram. By way of example, STFT, which is a Fourier-related transformations, analyzes the frequency and phase content of any segment of a signal from a time-varying system. The STFT can be expressed as follows:

$\begin{matrix} {{{V(\omega)}❘}_{t = \tau} = {\sum\limits_{n = {- \infty}}^{\infty}{{v(n)}{w\left( {n - \tau} \right)}e^{- i\omega n}}}} & (1) \end{matrix}$

where, v, w, and V_(τ)are the sound signal at time n, the window function, and discrete Fourier transform of windowed signal centered about time τ, respectively. The spectrogram vector PSD_(τ)(ω) at time τ can be obtained by squaring the magnitude of V, therefore, it corresponds to the power spectral density (PSD) of V as shown in (2).

PSD(ω)|_(t=τ)=|(V(ω)|_(t=τ))|²  (2)

Sound signal obtained at sampling frequency of f_(sampling), which is high enough to cover the frequency range of interest [0, f_(interest)] in monitoring with satisfying Nyquist frequency, are converted into spectrograms using STFT with windowing at every second, therefore the frequency resolution of the spectrograms is 1 Hz. By generating spectrograms, impact moments or other machine activity may be identified as features when spectral patterns vary.

The feature extractor may extract spectrogram features from the generated spectrogram (906). For example, acquired signals may be converted into spectrogram at a regular time interval. The PSDs may be filtered up to a predetermined frequency providing a fixed length vector for each PSD.

By way of example, the power spectral densities (PSDs) may be filtered up to f_(interest) Hz. The first f_(interest) points in each PSD vector are selected for achieving the bandwidth up to f_(interest) Hz, since the frequency resolution of the raw spectrogram is 1 Hz. After this, each PSD has a length of [f_(interest)+1].

Referring to operations 908-916, the feature extractor may prepare spectrogram features for anomaly detection (908). For example, the filtered PSDs may be normalized to have values within 0 and 1 using (eqn3), in which PSD^(k)(i) is i^(th) component in k^(th) PSD of spectrogram. This step is required since a sigmoid activation function is used in the output layer of the autoencoder, which is bounded between 0 and 1.

$\begin{matrix} {{{PSD}_{norm}^{k}(i)} = \frac{{{PSD}^{k}(i)} - {\min\left( {PSD}^{k} \right)}}{{\max\left( {PSD}^{k} \right)} - {\min\left( {PSD}^{k} \right)}}} & (3) \end{matrix}$

After normalization, successive PSDs are concatenated horizontally along the time axis. Since training autoencoder with one-dimensional (1D) PSDs may lead to confusion between normal and abnormal conditions, the number of n PSDs are combined into two-dimensional (2D) PSD sequences to construct a 2D input for a certain time interval for the autoencoder. The concatenation of 1D PSDs results in 2D images with a size of n. Therefore, k^(th) 2D feature F(k) can be configured through (4), where m is the amount of overlap. The k^(th) feature starts from k^(th) PSD to make features overlap with each other. The overlaps are assigned among the features to cover the entire range since it is difficult to make the recordings synchronized with machine operation.

F(k)=[PSD_(norm) ^(mk)|PSD_(norm) ^(mk+1)| . . . |PSD_(norm) ^(mk+n−1)]  (4)

The anomaly detector may reconstruct spectrogram features based on the prepared spectrogram features (910). For example, anomaly detector may access the autoencoder model 608 for the reconstruction.

An autoencoder is one of semi-supervised learning based NN architectures, which is a popular approach in image reconstruction and denoising. The term “semi-supervised” comes from the aspect that an autoencoder makes use of inputs as targets for reference. Encoding stage finds a compressed original input (PSD), and decoding stage produces an output that mimics the original input. In this example, the general type of stacked autoencoder is used.

It is assumed that there is a sequence composed of n-dimensional vectors X^((i))s, {X⁽¹⁾, X⁽²⁾, X⁽³⁾, . . . }, where X^((i))∈R^(n). The autoencoder tries to adapt output Y^((i)) close to the original input X^((i)). The feedforward process is as follows:

$\begin{matrix} \begin{matrix} \left( {{Hidden}{Layer}} \right) & {Z^{(i)} = {\sigma_{enc}\left( {W_{E}X^{(i)}} \right)}} \end{matrix} & (5) \end{matrix}$ $\begin{matrix} \left( {{Output}{Layer}} \right) & {Y^{(i)} = {\sigma_{dec}\left( {W_{D}Z^{(i)}} \right)}} \end{matrix}$

where, W_(E) and W_(D) are the weight arrays of encoder and decoder, σ is the activation function, and Z is the output of hidden layer, respectively. The error between X^((i)) and Y^((i)) is named as reconstruction error (RE) which is also represented as a loss function Loss(x^((i)), y^((i))) of the autoencoder. RE is computed after calculating output layer, and the “learning” yields minimizing the loss so that the reconstructed images resemble the original inputs (i.e. spectrogram images). In this work, the activation functions and a loss function are designed as follows:

$\begin{matrix} \begin{matrix} ({Activation}) & {{\sigma_{enc}(x)} = \left\{ \begin{matrix} {0,} & {x < 0} \\ {x,} & {x \geq 0} \end{matrix} \right.} \end{matrix} & (6) \end{matrix}$ $\begin{matrix} ({Activation}) & {{\sigma_{dec}(x)} = \frac{1}{1 + e^{- x}}} \end{matrix}$ $\begin{matrix} ({RE}) & {{{Loss}\left( {x^{(i)},y^{(i)}} \right)} = {\frac{1}{n}{\sum\limits_{k = 1}^{n}\left( {x_{k}^{(i)} - y_{k}^{(i)}} \right)^{2}}}} \end{matrix}$

where, the activation functions σ_(enc)(x) and σ_(dec)(x) are also known as the Rectified Linear Unit (ReLU) and the sigmoid function, respectively. In this study, σ_(enc)(x) is used for encoding (data compression), and σ_(dec)(x) is employed for decoding (input reconstruction). For the loss function, mean-squared error is assigned.

Next, the network parameters W_(E) and W_(D) are updated by back-propagation algorithm. The parameters are adjusted where the loss function defined in Eq. (6) is minimized for all training examples. This framework uses Adaptive moment estimation (Adam) optimizer which is recommended for faster optimization than other methods such as Momentum optimization or Nesterov Accelerated Gradient.

The anomaly detector may generate a reconstruction error (RE) (912). The reconstruction error may include a measure between the input features and output features of the auto-encoder model. The reconstruction error may be determined based on the loss function of the autoencoder. To classify anomalous signals from normal signals by (REs), the autoencoder should be trained purely with normal signals. After training without abnormal signals, the autoencoder produces larger RE when “unseen” data from abnormal status are fed in as input.

Accordingly, the autoencoder model 408 may be trained with features from normal (i.e. non-anomalous) operating conditions. After training, features derived in real-time may be fed into the autoencoder to measure RE values. During training time, by comparing the distributions of RE, a threshold can be set to distinguish the normal and the abnormal status.

In some examples, the system may include multiple autoencoders. Each autoencoder may correspond to a particular component or group of component of a machine. Thus, each autoencoder be trained based on spectrogram features generated for normal conditions for the corresponding component(s).

The anomaly detector may determine whether an anomaly criterion is satisfied (914). The anomaly criteria may include a rule and/or logic that compares the reconstruction error with threshold(s). The threshold(s) may be determined based on the training and/or tuning of the autoencoder model 408. In some examples, multiple criteria and/or thresholds may be established for each autoencoder model 408 (and each corresponding component or group of components of the monitored machine 104).

In response to satisfaction of the anomaly criteria, the anomaly detector may generate an anomalous event (916). The anomalous event may include a message, signal, and/or notification that represents detection of an anomalous event. The anomalous event may identify the monitored machine 104, the component of the monitored machine 104, the type of event, and/or other information, statistics, and/or values calculated based on the machine learning model for anomalous detection. In response to the anomaly criteria not being satisfies, the anomalous event may not be generated, or the anomaly detector may generate some other event indicative of normal operation.

FIG. 10 illustrates example of logic for classifying machine operation. The input controller may obtain an audio signal captured by one or more audio capture devices (1002). The feature extractor may generate features. For example, the feature extractor may apply Mel-Frequency Cepstral Coefficients (MFCC) to extract the spectral features. MFCCs use the Mel scale which is based on the human ear scale. MFCCs being considered as frequency domain features are much more accurate than time domain features. MFCC is a representation of the real cepstral of a windowed short-time signal derived from the Discrete Fourier Transform (DFT) of that signal. The difference from the real cepstral is that a nonlinear frequency scale is used, which approximates the behavior of the auditory system. Additionally, these coefficients are robust and reliable.

The speech signal is first divided into time frames. A length of the frame of sound signal may be selected to get the appropriate level of DFT bandwidth. For example 2,048 achieves a narrowband (30 Hz) DFT bandwidth of the sampling frequency. Overlapping of the frames may be used to smooth transition from frame to frame.

The next stage is to boost the amount of energy in the high frequency by introducing pre-emphasis filter:

y[n]=x[n]−αx[n−1]  (7)

where y is pre-filtered signal and x is the raw sound signal. Each time frame is then windowed with Hamming window to eliminate discontinuities at the edges. After the windowing, DFT is calculated from each frame to extract frequency components of a signal in the time-domain. The logarithmic Mel-scaled filter bank is applied after DFT frame. This scale is approximately linear up to 1 kHz, and then logarithmic at greater frequencies. The relation between frequency and Mel scale shows in Eq. (8).

$\begin{matrix} {m = {2597{\log_{10}\left( {1 + \frac{f}{700}} \right)}}} & (8) \end{matrix}$

where m and f are Mel and Herz, respectively. Each filter in the filter bank is triangular having a response of 1 at the center frequency and decrease linearly towards 0 till it reaches the center frequencies of the two adjacent filters where the response is 0. Then, the outputs from the filter bank converted to log-Mel spectrum. The last step is to calculate discrete cosine transformation (DCT) of the Mel spectrogram. DCT ranges coefficients according to significance.

The Classifier may classify machine operation based on a classifier (1006). A machine learning model and multi-label classification may be accessed to estimate machine statuses from sound features. For example, a convolutional neural network (CNN) may be utilized for the machine learning model. In the case of a 1D CNN, each label may have binary values. To train the 1D CNN model, maximizing F1 score was used which is effective to multi-label classification. Confusion matrix is defined in table 1. F1 score is defined as

$\begin{matrix} {{F1} = \frac{2{TP}}{{2{TP}} + {FP} + {FN}}} & (9) \end{matrix}$

In 1D CNN input, MFCC feature vectors form one or more sensors may be used. In some examples, sensor fusion (SF) was used to achieve high performance. In SF, all sensors may form a multi-layer 1D CNN. Therefore, (40×4) inputs may be used to the input layer of the 1D CNN. TABLE 2 shows an example of the parameters and output shapes of the CNN networks. In each convolution layer and hidden layer, ReLU activation function may be used. The output layer may be activated by Sigmoid function.

TABLE 1 Confusion Matrix True Positive True Negative Predicted Positive TP FP Predicted Negative FN TN

TABLE 2 CNN layers Layer (type) Output Shape Parameters Conv1D (38, 64)  832 Conv1D (36, 128) 24704 Max pooling (36, 128) — Fully connected (2304) — Hidden layer  (512) — Output   (5) 1180160

The operations shown in FIG. 5 may include additional, different, or fewer operations than illustrated in FIG. 5 . The operations may be executed in a different order than illustrated in FIG. 5 .

FIG. 11 illustrates a second example of the system 100. In some examples, the system may include a monitoring device. The monitoring device may include the audio capture device 102 and the audio processing controller 106. Accordingly, the monitoring device may be integrated such that the monitoring device may send communication data that includes machine activity classifications, anomalous event detection information, and other derived information described herein. In some examples, information transmitted by the monitoring device 1102 may be communicated via wireless or wired communications (though wired may be preferable in remote locations).

In some examples, the monitoring device and/or the audio capture device may include a securing mechanism 1104. The securing mechanism may include, for example a clamp, magnet(s), a strap, etc.

FIG. 12 illustrates a third example of the system 100. The monitoring device 1102 illustrated in FIG. 12 includes the microphone 204 and/or the audio processing controller 106. The microphone 204 is located away from the monitored machine 104 to reduce noise from other machines, unmonitored components, and other unwanted sources. In other examples, the monitoring device 1102 may receive audio signals from the microphone and then transmit the audio signals to an audio processing controller that is positioned remote from the monitoring device 1102.

FIG. 13 illustrates a fourth example of the system 100. The monitoring device 1102 may be positioned on the machine such that the audio capture device 102 captures sound generated by one or more components of the machine.

As illustrated in FIG. 13 , the monitoring device 1102 may be attached to the machine at a location that is not directly over, touching, or adjacent to a particular component. For example, the capturing device may include a first component and a second component (and/or additional components, in other examples). The first component may be located at a first location on the machine and the second component may be located at a second location on the machine. The monitoring device 602 may be located at a third location that is between the first component and the second component. For example, the monitoring device may be attached to a surface of the machine between the first location and the second location. In some examples, vibrations attributable to one or both of the components may travel along a structure of the machine to the monitoring device. Central placement of the monitoring between the components may ensure that the vibration and/or sound from one component are not favored over another.

FIG. 14 illustrates fifth example of the system 100. One or more monitoring devices (two shown in FIG. 14 ) may be positioned on a target machine. The components may include, for example, motors, servos, gears, or other parts of the machine that generate audible sound. By way of example, the machine may include a robotic arm and the components may include motors that operate joints of the robotic arm, such as illustrated in FIG. 14 . Each of the joints may be considered a component monitored by the audio processor controller 106. As previously discussed, the audio processor controller 106 may include multiple autoencoders where each autoencoder is trained for a corresponding joint.

The system 100 may be implemented with additional, different, or fewer components than illustrated. Each component may include additional, different, or fewer components.

FIG. 15 illustrates a sixth example of the system 100. The system 100 may include communication interfaces 812, input interfaces 828 and/or system circuitry 814. The system circuitry 814 may include a processor 816 or multiple processors. Alternatively or in addition, the system circuitry 814 may include memory 820.

The processor 816 may be in communication with the memory 820. In some examples, the processor 816 may also be in communication with additional elements, such as the communication interfaces 812, the input interfaces 828, and/or the user interface 818. Examples of the processor 816 may include a general processor, a central processing unit, logical CPUs/arrays, a microcontroller, a server, an application specific integrated circuit (ASIC), a digital signal processor, a field programmable gate array (FPGA), and/or a digital circuit, analog circuit, or some combination thereof.

The processor 816 may be one or more devices operable to execute logic. The logic may include computer executable instructions or computer code stored in the memory 820 or in other memory that when executed by the processor 816, cause the processor 816 to perform the operations of the audio processing controller 106, input controller 602, the feature extractor 604, the anomaly detector 606, the autoencoder model 608, the classifier 610, the classification model 612, the output controller 614, and/or system 100. The computer code may include instructions executable with the processor 816.

The memory 820 may be any device for storing and retrieving data or any combination thereof. The memory 820 may include non-volatile and/or volatile memory, such as a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or flash memory. Alternatively or in addition, the memory 820 may include an optical, magnetic (hard-drive), solid-state drive or any other form of data storage device. The memory 820 may include at least one of the processor 816, cause the processor 816 to perform the operations of the audio processing controller 106, the input controller 602, the feature extractor 604, the anomaly detector 606, the autoencoder model 608, the classifier 610, the classification model 612, the output controller 614, and/or system 100. Alternatively or in addition, the memory may include any other component or sub-component of the system 100 described herein.

The user interface 818 may include any interface for displaying graphical information. The system circuitry 814 and/or the communications interface(s) 812 may communicate signals or commands to the user interface 818 that cause the user interface to display graphical information. Alternatively or in addition, the user interface 818 may be remote to the system 100 and the system circuitry 814 and/or communication interface(s) may communicate instructions, such as HTML, to the user interface to cause the user interface to display, compile, and/or render information content. In some examples, the content displayed by the user interface 818 may be interactive or responsive to user input. For example, the user interface 818 may communicate signals, messages, and/or information back to the communications interface 812 or system circuitry 814.

The system 100 may be implemented in many ways. In some examples, the system 100 may be implemented with one or more logical components. For example, the logical components of the system 100 may be hardware or a combination of hardware and software. The logical components may include the processor 816, cause the processor 816 to perform the operations of the audio processing controller 106, input controller 602, the feature extractor 604, the anomaly detector 606, the autoencoder model 608, the classifier 610, the classification model 612, the output controller 614, and/or any component or subcomponent of the system 100. In some examples, each logic component may include an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), a digital logic circuit, an analog circuit, a combination of discrete circuits, gates, or any other type of hardware or combination thereof. Alternatively or in addition, each component may include memory hardware, such as a portion of the memory 820, for example, that comprises instructions executable with the processor 816 or other processor to implement one or more of the features of the logical components. When any one of the logical components includes the portion of the memory that comprises instructions executable with the processor 816, the component may or may not include the processor 816. In some examples, each logical component may just be the portion of the memory 820 or other physical memory that comprises instructions executable with the processor 816, or other processor(s), to implement the features of the corresponding component without the component including any other hardware. Because each component includes at least some hardware even when the included hardware comprises software, each component may be interchangeably referred to as a hardware component.

Some features are shown stored in a computer readable storage medium (for example, as logic implemented as computer executable instructions or as data structures in memory). All or part of the system and its logic and data structures may be stored on, distributed across, or read from one or more types of computer readable storage media. Examples of the computer readable storage medium may include a hard disk, a floppy disk, a CD-ROM, a flash drive, a cache, volatile memory, non-volatile memory, RAM, flash memory, or any other type of computer readable storage medium or storage media. The computer readable storage medium may include any type of non-transitory computer readable medium, such as a CD-ROM, a volatile memory, a non-volatile memory, ROM, RAM, or any other suitable storage device.

The processing capability of the system may be distributed among multiple entities, such as among multiple processors and memories, optionally including multiple distributed processing systems. Parameters, databases, and other data structures may be separately stored and managed, may be incorporated into a single memory or database, may be logically and physically organized in many different ways, and may implemented with different types of data structures such as linked lists, hash tables, or implicit storage mechanisms. Logic, such as programs or circuitry, may be combined or split among multiple programs, distributed across several memories and processors, and may be implemented in a library, such as a shared library (for example, a dynamic link library (DLL).

All of the discussion, regardless of the particular implementation described, is illustrative in nature, rather than limiting. For example, although selected aspects, features, or components of the implementations are depicted as being stored in memory(s), all or part of the system or systems may be stored on, distributed across, or read from other computer readable storage media, for example, secondary storage devices such as hard disks, flash memory drives, floppy disks, and CD-ROMs. Moreover, the various logical units, circuitry and screen display functionality is but one example of such functionality and any other configurations encompassing similar functionality are possible.

The respective logic, software or instructions for implementing the processes, methods and/or techniques discussed above may be provided on computer readable storage media. The functions, acts or tasks illustrated in the figures or described herein may be executed in response to one or more sets of logic or instructions stored in or on computer readable media. The functions, acts or tasks are independent of the particular type of instructions set, storage media, processor or processing strategy and may be performed by software, hardware, integrated circuits, firmware, micro code and the like, operating alone or in combination. Likewise, processing strategies may include multiprocessing, multitasking, parallel processing and the like. In one example, the instructions are stored on a removable media device for reading by local or remote systems. In other examples, the logic or instructions are stored in a remote location for transfer through a computer network or over telephone lines. In yet other examples, the logic or instructions are stored within a given computer and/or central processing unit (“CPU”).

Furthermore, although specific components are described above, methods, systems, and articles of manufacture described herein may include additional, fewer, or different components. For example, a processor may be implemented as a microprocessor, microcontroller, application specific integrated circuit (ASIC), discrete logic, or a combination of other type of circuits or logic. Similarly, memories may be DRAM, SRAM, Flash or any other type of memory. Flags, data, databases, tables, entities, and other data structures may be separately stored and managed, may be incorporated into a single memory or database, may be distributed, or may be logically and physically organized in many different ways. The components may operate independently or be part of a same apparatus executing a same program or different programs. The components may be resident on separate hardware, such as separate removable circuit boards, or share common hardware, such as a same memory and processor for implementing instructions from the memory. Programs may be parts of a single program, separate programs, or distributed across several memories and processors.

A second action may be said to be “in response to” a first action independent of whether the second action results directly or indirectly from the first action. The second action may occur at a substantially later time than the first action and still be in response to the first action. Similarly, the second action may be said to be in response to the first action even if intervening actions take place between the first action and the second action, and even if one or more of the intervening actions directly cause the second action to be performed. For example, a second action may be in response to a first action if the first action sets a flag and a third action later initiates the second action whenever the flag is set.

To clarify the use of and to hereby provide notice to the public, the phrases “at least one of <A>, <B>, . . . and <N>” or “at least one of <A>, <B>, . . . <N>, or combinations thereof” or “<A>, <B>, . . . and/or <N>” are defined by the Applicant in the broadest sense, superseding any other implied definitions hereinbefore or hereinafter unless expressly asserted by the Applicant to the contrary, to mean one or more elements selected from the group comprising A, B, . . . and N. In other words, the phrases mean any combination of one or more of the elements A, B, . . . or N including any one element alone or the one element in combination with one or more of the other elements which may also include, in combination, additional elements not listed.

While various embodiments have been described, it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible. Accordingly, the embodiments described herein are examples, not the only possible embodiments and implementations. 

what is claimed is:
 1. A device comprising: an audio capture device configured to generate a signal in response to sound separately generated a first component and a second component of a mechanical apparatus; a processor, the processor configured to: receive the signal generated by the microphone of the audio capture device; determine, based on a first machine learning model and the signal, one of the first and second components is activated for operation; determine, based on a second machine learning model and the signal, an anomalous event associated with the first component, a second component, or a combination thereof; and output a data message indicative of the anomalous event.
 2. The device of claim 1, wherein to determine, based on the second machine learning model and the signal, an anomalous event associated with the first component, a second component, or a combination thereof, the processor is further configured to: generate a spectrogram based on the signal; generate a feature set for the machine learning model based on the spectrogram, or a portion thereof; generate, based on the feature set and the machine learning model, a reconstruction error measurement; and determine the reconstruction error satisfies an anomaly criterion.
 3. The device of claim 1, wherein first machine learning model comprises a convolutional neural network.
 4. The device of claim 1, wherein the second machine learning model comprises an autoencoder neural network.
 5. The device of claim 1, wherein the processor is further configured to: include, in the data message, a component identifier corresponding to the one of the first and second components that is activated for operation so that the data message associates the component identifier and the anomalous event.
 5. The device of claim 1, wherein the audio capture device comprises a body, a diaphragm disposed in the body, and a microphone, wherein the diaphragm is configured to vibrate in response to sound generated by the mechanical device and the microphone.
 6. The device of claim 5, wherein the body is tapered between the first end and second end such that the first end is wider than the second end.
 7. The device of claim 5, wherein the audio capture device further comprises a hose coupled to the body, the hose extending away from the body, wherein the microphone is located an end of the hose away from the device.
 8. The device of claim 1, wherein the machine is a mechanical arm, the first component is a motor for a first joint of the arm and the second component is a motor for a second joint of the arm.
 9. The device of claim 1, wherein the first component is located at a first location on the machine and the second component is located at a second location on the machine, wherein the audio capture device is configured to attach to a third location on the machine in between the first location and the second location.
 10. The device of claim 1, where in the audio capture device is attachable to the machine.
 11. A system comprising: an audio capture device configured to generate a signal in response to sound separately generated a first component and a second component of a mechanical apparatus; a processor, the processor configured to: receive the signal generated by the microphone of the audio capture device; classify, based on a convolutional neural network and the signal, operation of the first component, the second component, or a combination thereof; determine, based on an autoencoder neural network and the signal, an anomalous event corresponding to the first component, the second component, or a combination thereof; and output a data message identifying the anomalous event.
 12. The system of claim 11, wherein to determine, based on the autoencoder neural network and the signal, the anomalous event, the processor is further configured to: generate a spectrogram based on the signal; generate a feature set for the machine learning model based on the spectrogram, or a portion thereof; generate, based on the feature set and the machine learning model, a reconstruction error measurement; and determine the reconstruction error satisfies an anomaly criteria.
 13. The system of claim 11, wherein the audio capture device comprises a body, a diaphragm disposed in the body, and a microphone, wherein the diaphragm is configured to vibrate in response to sound generated by the mechanical device and the microphone.
 14. The system of claim 11, wherein the body is tapered between the first end and second end such that the first end is wider than the second end.
 15. The system of claim 11, wherein the audio capture device further comprises a hose coupled to the body, the hose extending away from the body, wherein the microphone is located an end of the hose away from the device.
 16. The system of claim 11, wherein the autoencoder neural network comprises a plurality of autoencoder neural networks, each of the neural networks trained to predict sound generated be a different one of the first and second components.
 17. A method, comprising: receiving an audio signal generated by a microphone of an audio capture device attached to a machine comprising a first component and a second component, the audio capture device configured to generate a signal in response audio caused by operation of the first and second component; determining, based on a first machine learning model and the audio signal, an anomalous event associated with the first component, a second component, or a combination thereof; classifying, based on a second machine learning model and the audio signal, operation of the first component, the second component, or a combination thereof; and outputting a second data message indicative of the classified operation and anomalous event.
 18. The method of claim 17, wherein the first machine learning model comprises an autoencoder neural network and the second machine learning model comprises a convolutional neural network. 